<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看所有帖子</title>
<link rel="stylesheet" href="__PUBLIC__/Css/public.css">
</head>
<body>
	<table class="table">
    	<tr>
        	<th style="background-color:#3CF;">ID</th>
            <th style="background-color:#3CF;">姓名</th>
            <th style="background-color:#3CF;">发布内容</th>
            <th style="background-color:#3CF;">发布时间</th>
            <th style="background-color:#3CF;">操作</th>
        </tr>
        <?php if(is_array($wishlist)): foreach($wishlist as $key=>$v): ?><tr>
        	<th><?php echo ($v["postid"]); ?></th>
            <th><?php echo ($v["postname"]); ?></th>
            <th><?php echo (replace_phiz($v["postcontent"])); ?></th>
            <th><?php echo (date('Y年m月d日 H:i',$v["postdate"])); ?></th>
            <th>
            <a href="/" target="_self">修改</a>
             <a href="<?php echo U('Admin/MsgManage/delete',array('id' => $v['postid']),'');?>" target="_self">删除</a>
            </th>
        </tr><?php endforeach; endif; ?>
        
        <tr>
        	<td colspan="5" align="center"><?php echo ($page); ?></td>
        </tr>
        
    </table>
</body>
</html>